//
//  GMTipsHelper.m
//  golfMaster
//
//  Created by MAC_XXK on 14-7-13.
//  Copyright (c) 2014年 Master. All rights reserved.
//

#import "GMTipsHelper.h"
#import "SVProgressHUD.h"

#define BackGroundColor PCColorOfRGB(0,0,0,0.5)
#define ForegroundColor PCColorWhite


@implementation GMTipsHelper

+ (void)showLoadSeccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:@"登录成功"];//加载完成
}

+ (void)showLoadFail
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:@"加载完成"];//加载失败
}

+ (void)showBadNetwork
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:@"网络不给力"];//网络不给力
}


+ (void)showSearchEmpty
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:@"暂无相关内容"];//暂无相关内容
}

+ (void)showCollectSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:@"收藏成功"];//收藏成功
}

+ (void)cancelCollectSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:@"取消收藏"];//取消收藏
}


+ (void)showCommentSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"replySuccess.message")];//评论成功，下拉刷新
}

+ (void)showCommentView
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"replySuccess.message")];//评论成功
}

+ (void)showCommentEmpty
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"noRrply.message")];//暂无评论
}

+ (void)showContentsEmpty
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"contentEmpty.message")];//内容不能为空
}

+ (void)showRepeatOpinion
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"haveSupport.message")];//已赞过
}

+ (void)showUpdateSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"updataSuccess.message")];//上传成功
}

+ (void)showUpdateFail
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"upDataFailed.message")];//上传失败
}

+ (void)showNumberEmpty
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"emptyPhoneOrCode.message")];//手机号/验证码为空
}

+ (void)showLoginFail
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:@"登录失败"];//登录失败
}

+ (void)showLoginSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"loginSuccess.message")];//登录成功
}

+ (void)showBindingInviteCodeSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"BindinginviteCodeSuccess.message")];//成功绑定邀请码
}

+ (void)showLoginOut
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"logout.message")];//注销登录
}

+ (void)showEmailStatus
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"inputRithtEmail.message")];//请输入正确的邮箱
}

+ (void)showCheckVersion
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"currentIsNewestVersions.message")];//当前为最新版本
}

+ (void)showCaptchaSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"getCodeSuccess.message")];//验证码请求成功
}

+ (void)showCaptchaFail
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"getCodeFailed.message")];//验证码请求失败
}

+ (void)showMatchStatus
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"finishJoinInfo.message")];//请完善报名信息
}

+ (void) showMatchRegistrationSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"joinSuccess.message")];//报名成功
}

+ (void) showMatchRegistrationFail
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"joinFailed.message")];//报名失败
}

+ (void) showPhoneStatus
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"inputRightPhoneNum.message")];//请输入正确的手机号
}

+ (void)showSaveImageSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"imageSaveSuccess.message")];//图片保存成功
}

+ (void)showSaveImageFailure
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"imageSaveFailed.message")];//图片保存失败
}

+ (void) showSuccess:(NSString*)status
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:status];
}

+ (void) showFail:(NSString*)status
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    //[SVProgressHUD showWithStatus:status];
    [SVProgressHUD showImage:PCImage(@"GMTipIcon") status:status];
}



+ (void)showLoading
{
    [SVProgressHUD setBackgroundColor:BackGroundColor];
    [SVProgressHUD setForegroundColor:ForegroundColor];
    [SVProgressHUD show];
}

+ (void)showDismiss
{
    [SVProgressHUD dismiss];
}

+ (void)showComplaintsSuccess
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCollegeStr(@"complaint.success.message")];
}

+ (void)showComplaintsFailure
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCollegeStr(@"complaint.fail.message")];
}

//-----张强添加-------------
+ (void)showSaveImageShowDialog
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"choiceOneImage.message")];//请选择一张图片
}
+ (void)showLoadingDialog
{
    [SVProgressHUD setBackgroundColor:BackGroundColor];
    [SVProgressHUD setForegroundColor:ForegroundColor];
    [SVProgressHUD setStatus:GetCommonStr(@"workOn.message")];//正在处理中。。
    [SVProgressHUD show];
}

+ (void)showNotInputEmojiShowDialog
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"notInputFace.message")];//不能输入表情
}

#pragma mark -
#pragma mark - 投票
+ (void)showTopListVoteOutOf
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"noTickes.message")];//票用完了，晚点再试试。
}
+ (void)showTopListTheCourtHasToVote
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"haveVoted,12after.message")];//这个球场您已经投过票了，12小时后再来投吧"
}

+ (void)showVotingEndTips
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:@"投票已结束"];//这个球场您已经投过票了，12小时后再来投吧"
}

+ (void)showTopListAuthorizationFailure
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"failedLoginAgain.message")];//授权失效，请重新登录
}
+ (void)showTopListFailedVote
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"badNetWork,voteFailed.message")];//网络环境不好，投票失败了
}
#pragma mark -
#pragma mark - 商城
+ (void)showShopAddNewAddressFaile
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"addFailed.message")];//添加失败
}
+ (void)showShopChangeNewAddressFaile
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"modifyFailed.message")];//修改失败
}
+ (void)showShopDeleNewAddressFaile
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"deleteFailed.message")];//删除失败
}
+ (void)showShopAddressInUseDoNotDeleat
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showErrorWithStatus:GetCommonStr(@"shop_AddressInUseDoNotDeleat")];//地址正在使用中
}

+ (void)showShopCncleOrder
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"cancelOrderSuccess.message")];//取消订单成功
}
+ (void)showShareNoData
{
    [SVProgressHUD setBackgroundColor: BackGroundColor];
    [SVProgressHUD setForegroundColor: ForegroundColor];
    [SVProgressHUD showSuccessWithStatus:GetCommonStr(@"share.noData.message")];//暂无分享内容
}

@end
